// forward_as_tuple example
#include <bits/stdc++.h>
using namespace std;
void print_pack (tuple<string&&,int&&> pack) {
  cout << get<0>(pack) << ", " << get<1>(pack) << '\n';
}

int main() {
  string str = "John";
  print_pack (std::forward_as_tuple(str+" Smith",25));
  print_pack (std::forward_as_tuple(str+" Daniels",22));
  return 0;
}
